<?xml version="1.0" encoding="UTF-8" ?>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="es">
<html:xhtml/>
    <head>
        <title>BAM</title>
        <link rel="stylesheet" type="text/css" href="inc/estilos.css" />
        <link rel="stylesheet" type="text/css" href="inc/forms.css" />
    </head>
    <body>
        
        
        <div id="header">BMW-Audi-Mercedes</div>
        
        <h1>Miniaturas de coches</h1>
        <div id="login">
        <logic:empty name="login">
            <html:form action="/LoginUser" method="post" onsubmit="return validate(this);">
                <fieldset>
                    <legend>Entrar</legend>
                    <label>Nombre de usuario</label><html:text property="login" size="20" maxlength="20"/>
                    <br/>
                    <label>Contrase&ntilde;a</label><html:password property="pass" size="20" maxlength="20"/>
                    <br/><br/>
                    <label><html:submit>Entrar</html:submit></label><a href="AddUser.do">Registrarse</a>
                </fieldset>
            </html:form>
        </logic:empty>
        <logic:notEmpty name="login">
            <fieldset>Welcome, <bean:write name="LoginForm" property="login"/>!</fieldset>
        </logic:notEmpty>
        </div>
        
        <ul>
            <li><a href="VerLibro.do?id=1">Ver libro</a></li>
            <li><a href="VerLibro2.do?id=1">Ver libro 2</a></li>
            <li><a href="ListaLibros.do">Lista de libros</a></li>
            <li><a href="Contador.do">Contador</a></li>
            <li><a href="AddLibro.do">Agregar libro</a></li>
        </ul>
        
        
        <div id="copy">=^_^= NeKo-Sys</div>
    </body>
</html>